import json
from Database.Data_connect import yueyan_database
from flask import Blueprint

# 改为自己的蓝图
other = Blueprint('other', __name__)

# 数据库初始化
db = yueyan_database()


@other.route('/', methods=['GET', "POST"])
def index():
    # 响应：返回浏览器的数据
    return "other!"


@other.route('/test', methods=['GET', "POST"])
def index():
    # 响应：返回浏览器的数据
    return {"code": 200, "data": "success"}
